﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using 测试连表查询与分解查询.model;

namespace 测试连表查询与分解查询
{
    public class DefaultDbContext : DbContext
    {
        public virtual DbSet<Level1_Model> Level1_Models { get; set; }
        public virtual DbSet<Level2_Model> Level2_Models { get; set; }
        public virtual DbSet<Level3_Model> Level3_Models { get; set; }
        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) => optionsBuilder.UseSqlServer("Server=110.41.160.73;DataBase=testdb;User ID=sa;Password=aS103208900;TrustServerCertificate=true");
    }

}
